200
How can I align the column to the right
Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.Columns.Add("Column").Alignment = 2
var_Column = oG2antt.Columns.Add("Column")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Alignment = 2"

oG2antt.Items.AddItem(0)
oG2antt.Items.AddItem(1)

199
How do I change the column's caption
Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.Columns.Add("Column").Caption = "new caption"
var_Column = oG2antt.Columns.Add("Column")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Caption = `new caption`"


198
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
Dim oG2antt as P
Dim var_Items as P
Dim var_Items1 as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "FormatAnchor(False) = `<b><u><fgcolor=880000> </fgcolor></u></b>`" // oG2antt.FormatAnchor(.f.) = "<b><u><fgcolor=880000> </fgcolor></u></b>"
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	' var_Items.CellValueFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0) = 1
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValueFormat(AddItem(`Just an <a1>anchor</a> element ...`),0) = 1"

var_Items1 = oG2antt.Items
	' var_Items1.CellValueFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0) = 1
	oG2antt.TemplateDef = "dim var_Items1"
	oG2antt.TemplateDef = var_Items1
	oG2antt.Template = "var_Items1.CellValueFormat(AddItem(`Just another <a2>anchor</a> element ...`),0) = 1"

oG2antt.Items.AddItem("next item")

197
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
Dim oG2antt as P
Dim var_Items as P
Dim var_Items1 as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "FormatAnchor(True) = `<b><u><fgcolor=FF0000> </fgcolor></u></b>`" // oG2antt.FormatAnchor(.t.) = "<b><u><fgcolor=FF0000> </fgcolor></u></b>"
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	' var_Items.CellValueFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0) = 1
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValueFormat(AddItem(`Just an <a1>anchor</a> element ...`),0) = 1"

var_Items1 = oG2antt.Items
	' var_Items1.CellValueFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0) = 1
	oG2antt.TemplateDef = "dim var_Items1"
	oG2antt.TemplateDef = var_Items1
	oG2antt.Template = "var_Items1.CellValueFormat(AddItem(`Just another <a2>anchor</a> element ...`),0) = 1"


196
Can I change the font for the tooltip
Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ToolTipDelay = 1
oG2antt.ToolTipWidth = 364
' oG2antt.Columns.Add("tootip").ToolTip = "<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>"
var_Column = oG2antt.Columns.Add("tootip")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.ToolTip = `<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>`"


195
Can I change the font for the tooltip
Dim oG2antt as P
Dim var_Column as local
Dim var_StdFont as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ToolTipDelay = 1
var_StdFont = oG2antt.ToolTipFont
	var_StdFont.Name = "Tahoma"
	var_StdFont.Size = 14
oG2antt.ToolTipWidth = 364
' oG2antt.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
var_Column = oG2antt.Columns.Add("tootip")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.ToolTip = `this is a tooltip assigned to a column`"


194
Can I change the order of the buttons in the scroll bar
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "ScrollOrderParts(1) = `t,l,r`" // oG2antt.ScrollOrderParts(1) = "t,l,r"
oG2antt.Template = "ScrollOrderParts(0) = `t,l,r`" // oG2antt.ScrollOrderParts(0) = "t,l,r"
oG2antt.ScrollBars = 15

193
The thumb size seems to be very small. Can I make it bigger
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ColumnAutoResize = .f.
' oG2antt.Columns.Add("C1").Width = 256
var_Column = oG2antt.Columns.Add("C1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 256"

' oG2antt.Columns.Add("C2").Width = 256
var_Column1 = oG2antt.Columns.Add("C2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.Width = 256"

' oG2antt.Columns.Add("C3").Width = 256
var_Column2 = oG2antt.Columns.Add("C3")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.Width = 256"

oG2antt.Template = "ScrollThumbSize(1) = 64" // oG2antt.ScrollThumbSize(1) = 64

192
How can I display my text on the scroll bar, using a different font
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "ScrollPartCaption(1,256) = `This is <s><font Tahoma;12> just </font></s> text`" // oG2antt.ScrollPartCaption(1,256) = "This is <s><font Tahoma;12> just </font></s> text"
oG2antt.ColumnAutoResize = .f.
oG2antt.ScrollHeight = 20
' oG2antt.Columns.Add("C1").Width = 256
var_Column = oG2antt.Columns.Add("C1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 256"

' oG2antt.Columns.Add("C2").Width = 256
var_Column1 = oG2antt.Columns.Add("C2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.Width = 256"

' oG2antt.Columns.Add("C3").Width = 256
var_Column2 = oG2antt.Columns.Add("C3")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.Width = 256"


191
How can I display my text on the scroll bar, using a different font
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_StdFont as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "ScrollPartCaption(1,256) = `This is just a text`" // oG2antt.ScrollPartCaption(1,256) = "This is just a text"
' oG2antt.ScrollFont(1).Size = 12
var_StdFont = oG2antt.ScrollFont(1)
oG2antt.TemplateDef = "dim var_StdFont"
oG2antt.TemplateDef = var_StdFont
oG2antt.Template = "var_StdFont.Size = 12"

oG2antt.ColumnAutoResize = .f.
oG2antt.ScrollHeight = 20
' oG2antt.Columns.Add("C1").Width = 256
var_Column = oG2antt.Columns.Add("C1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 256"

' oG2antt.Columns.Add("C2").Width = 256
var_Column1 = oG2antt.Columns.Add("C2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.Width = 256"

' oG2antt.Columns.Add("C3").Width = 256
var_Column2 = oG2antt.Columns.Add("C3")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.Width = 256"


190
How can I display my text on the scroll bar
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "ScrollPartCaption(1,256) = `this is just a text`" // oG2antt.ScrollPartCaption(1,256) = "this is just a text"
oG2antt.ColumnAutoResize = .f.
' oG2antt.Columns.Add("C1").Width = 256
var_Column = oG2antt.Columns.Add("C1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 256"

' oG2antt.Columns.Add("C2").Width = 256
var_Column1 = oG2antt.Columns.Add("C2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.Width = 256"

' oG2antt.Columns.Add("C3").Width = 256
var_Column2 = oG2antt.Columns.Add("C3")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.Width = 256"


189
How do I enlarge or change the size of the control's scrollbars
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ScrollHeight = 18
oG2antt.ScrollWidth = 18
oG2antt.ScrollButtonWidth = 18
oG2antt.ScrollButtonHeight = 18
oG2antt.ScrollBars = 15

188
How do I assign a tooltip to a scrollbar
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "ScrollToolTip(1) = `This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar`" // oG2antt.ScrollToolTip(1) = "This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar"
oG2antt.ColumnAutoResize = .f.
' oG2antt.Columns.Add("C1").Width = 256
var_Column = oG2antt.Columns.Add("C1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 256"

' oG2antt.Columns.Add("C2").Width = 256
var_Column1 = oG2antt.Columns.Add("C2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.Width = 256"

' oG2antt.Columns.Add("C3").Width = 256
var_Column2 = oG2antt.Columns.Add("C3")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.Width = 256"


187
How do I assign an icon to the button in the scrollbar
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oG2antt.Template = "ScrollPartVisible(1,32768) = True" // oG2antt.ScrollPartVisible(1,32768) = .t.
oG2antt.Template = "ScrollPartCaption(1,32768) = `<img>1</img>`" // oG2antt.ScrollPartCaption(1,32768) = "<img>1</img>"
oG2antt.ScrollHeight = 18
oG2antt.ScrollButtonWidth = 18
oG2antt.ScrollBars = 5

186
I need to add a button in the scroll bar. Is this possible
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "ScrollPartVisible(1,32768) = True" // oG2antt.ScrollPartVisible(1,32768) = .t.
oG2antt.Template = "ScrollPartCaption(1,32768) = `1`" // oG2antt.ScrollPartCaption(1,32768) = "1"
oG2antt.ScrollBars = 5

185
Can I display an additional buttons in the scroll bar
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "ScrollPartVisible(1,32768) = True" // oG2antt.ScrollPartVisible(1,32768) = .t.
oG2antt.Template = "ScrollPartVisible(1,16384) = True" // oG2antt.ScrollPartVisible(1,16384) = .t.
oG2antt.Template = "ScrollPartVisible(1,1) = True" // oG2antt.ScrollPartVisible(1,1) = .t.
oG2antt.Template = "ScrollPartVisible(1,2) = True" // oG2antt.ScrollPartVisible(1,2) = .t.
oG2antt.ScrollBars = 5

184
Can I display the picture aligned to the right, while the text aligned to the left
Dim oG2antt as P
Dim s as 
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.DefaultItemHeight = 48
oG2antt.Columns.Add("C1")
var_Items = oG2antt.Items
	s = var_Items.SplitCell(var_Items.AddItem("Text"),0)
	' var_Items.CellPicture(,s) = oG2antt.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
	oG2antt.TemplateDef = "dim var_Items,s"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = s
	oG2antt.Template = "var_Items.CellPicture(,s) = Me.ExecuteTemplate(`loadpicture(``c:\exontrol\images\zipdisk.gif``)`)"

	' var_Items.CellHAlignment(,s) = 2
	oG2antt.TemplateDef = "dim var_Items,s"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = s
	oG2antt.Template = "var_Items.CellHAlignment(,s) = 2"


183
How can I display a custom size picture to a cell or item
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.DefaultItemHeight = 48
oG2antt.Columns.Add("C1")
var_Items = oG2antt.Items
	' var_Items.CellPicture(var_Items.AddItem("Text"),0) = oG2antt.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellPicture(AddItem(`Text`),0) = Me.ExecuteTemplate(`loadpicture(``c:\exontrol\images\zipdisk.gif``)`)"


182
How can I display a multiple pictures to a cell or item
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.DefaultItemHeight = 48
oG2antt.Template = "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`" // oG2antt.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
oG2antt.Template = "HTMLPicture(`pic2`) = `c:\exontrol\images\auction.gif`" // oG2antt.HTMLPicture("pic2") = "c:\exontrol\images\auction.gif"
oG2antt.Columns.Add("C1")
var_Items = oG2antt.Items
	' var_Items.CellValueFormat(var_Items.AddItem("<img>pic1</img> Text <img>pic2</img> another text ..."),0) = 1
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValueFormat(AddItem(`<img>pic1</img> Text <img>pic2</img> another text ...`),0) = 1"


181
How do I change the column's foreground color for numbers between an interval - Range
Dim oG2antt as P
Dim var_ConditionalFormat as P
Dim var_Items as P
Dim var_Items1 as P
Dim var_Items2 as P
Dim var_Items3 as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
var_ConditionalFormat = oG2antt.ConditionalFormats.Add("dbl(%0) >= 2 and dbl(%0) <= 10")
	var_ConditionalFormat.Bold = .t.
	var_ConditionalFormat.ForeColor = 255
	var_ConditionalFormat.ApplyTo = 1 '1 + 
oG2antt.Columns.Add("N1")
oG2antt.Columns.Add("N2")
var_Items = oG2antt.Items
	' var_Items.CellValue(var_Items.AddItem(1),1) = 2
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(AddItem(1),1) = 2"

var_Items1 = oG2antt.Items
	' var_Items1.CellValue(var_Items1.AddItem(3),1) = 3
	oG2antt.TemplateDef = "dim var_Items1"
	oG2antt.TemplateDef = var_Items1
	oG2antt.Template = "var_Items1.CellValue(AddItem(3),1) = 3"

var_Items2 = oG2antt.Items
	' var_Items2.CellValue(var_Items2.AddItem(10),1) = 11
	oG2antt.TemplateDef = "dim var_Items2"
	oG2antt.TemplateDef = var_Items2
	oG2antt.Template = "var_Items2.CellValue(AddItem(10),1) = 11"

var_Items3 = oG2antt.Items
	' var_Items3.CellValue(var_Items3.AddItem(13),1) = 31
	oG2antt.TemplateDef = "dim var_Items3"
	oG2antt.TemplateDef = var_Items3
	oG2antt.Template = "var_Items3.CellValue(AddItem(13),1) = 31"

oG2antt.SearchColumnIndex = 1

180
How do I change the item's foreground color for numbers between an interval - Range
Dim oG2antt as P
Dim var_ConditionalFormat as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.ConditionalFormats.Add("dbl(%0) >= 2 and dbl(%0) <= 10").ForeColor = 255
var_ConditionalFormat = oG2antt.ConditionalFormats.Add("dbl(%0) >= 2 and dbl(%0) <= 10")
oG2antt.TemplateDef = "dim var_ConditionalFormat"
oG2antt.TemplateDef = var_ConditionalFormat
oG2antt.Template = "var_ConditionalFormat.ForeColor = 255"

oG2antt.Columns.Add("Numbers")
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)
oG2antt.Items.AddItem(10)
oG2antt.Items.AddItem(20)

179
How do I change the item's background color for numbers less than a value
Dim oG2antt as P
Dim var_ConditionalFormat as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.ConditionalFormats.Add("dbl(%0) < 10").BackColor = 255
var_ConditionalFormat = oG2antt.ConditionalFormats.Add("dbl(%0) < 10")
oG2antt.TemplateDef = "dim var_ConditionalFormat"
oG2antt.TemplateDef = var_ConditionalFormat
oG2antt.Template = "var_ConditionalFormat.BackColor = 255"

oG2antt.Columns.Add("Numbers")
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)
oG2antt.Items.AddItem(10)
oG2antt.Items.AddItem(20)

178
How do I underline the numbers greater than a value
Dim oG2antt as P
Dim var_ConditionalFormat as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.ConditionalFormats.Add("dbl(%0) >= 10").Underline = .t.
var_ConditionalFormat = oG2antt.ConditionalFormats.Add("dbl(%0) >= 10")
oG2antt.TemplateDef = "dim var_ConditionalFormat"
oG2antt.TemplateDef = var_ConditionalFormat
oG2antt.Template = "var_ConditionalFormat.Underline = True"

oG2antt.Columns.Add("Numbers")
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)
oG2antt.Items.AddItem(10)
oG2antt.Items.AddItem(20)

177
How do I highlight in italic the numbers greater than a value
Dim oG2antt as P
Dim var_ConditionalFormat as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.ConditionalFormats.Add("dbl(%0) >= 10").StrikeOut = .t.
var_ConditionalFormat = oG2antt.ConditionalFormats.Add("dbl(%0) >= 10")
oG2antt.TemplateDef = "dim var_ConditionalFormat"
oG2antt.TemplateDef = var_ConditionalFormat
oG2antt.Template = "var_ConditionalFormat.StrikeOut = True"

oG2antt.Columns.Add("Numbers")
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)
oG2antt.Items.AddItem(10)
oG2antt.Items.AddItem(20)

176
How do I highlight in italic the numbers greater than a value
Dim oG2antt as P
Dim var_ConditionalFormat as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.ConditionalFormats.Add("dbl(%0) >= 10").Italic = .t.
var_ConditionalFormat = oG2antt.ConditionalFormats.Add("dbl(%0) >= 10")
oG2antt.TemplateDef = "dim var_ConditionalFormat"
oG2antt.TemplateDef = var_ConditionalFormat
oG2antt.Template = "var_ConditionalFormat.Italic = True"

oG2antt.Columns.Add("Numbers")
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)
oG2antt.Items.AddItem(10)
oG2antt.Items.AddItem(20)

175
How do I highlight in bold the numbers greater than a value
Dim oG2antt as P
Dim var_ConditionalFormat as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.ConditionalFormats.Add("dbl(%0) >= 10").Bold = .t.
var_ConditionalFormat = oG2antt.ConditionalFormats.Add("dbl(%0) >= 10")
oG2antt.TemplateDef = "dim var_ConditionalFormat"
oG2antt.TemplateDef = var_ConditionalFormat
oG2antt.Template = "var_ConditionalFormat.Bold = True"

oG2antt.Columns.Add("Numbers")
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)
oG2antt.Items.AddItem(10)
oG2antt.Items.AddItem(20)

174
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons

Dim h as N
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oG2antt.LinesAtRoot = 1
oG2antt.HasButtons = 4
oG2antt.Template = "HasButtonsCustom(0) = 16777216" // oG2antt.HasButtonsCustom(.f.) = 16777216
oG2antt.Template = "HasButtonsCustom(1) = 33554432" // oG2antt.HasButtonsCustom(.t.) = 33554432
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	' var_Items.ExpandItem(h) = .t.
	oG2antt.TemplateDef = "dim var_Items,h"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = h
	oG2antt.Template = "var_Items.ExpandItem(h) = True"

	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child")

173
Can I use your EBN files to change the visual appearance for radio buttons

Dim oG2antt as P
Dim var_Column as local
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oG2antt.Template = "RadioImage(0) = 16777216" // oG2antt.RadioImage(.f.) = 16777216
oG2antt.Template = "RadioImage(1) = 33554432" // oG2antt.RadioImage(.t.) = 33554432
' oG2antt.Columns.Add("Radio").Def(1) = .t.
var_Column = oG2antt.Columns.Add("Radio")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Def(1) = True"

var_Items = oG2antt.Items
	var_Items.AddItem("Radio 1")
	' var_Items.CellState(var_Items.AddItem("Radio 2"),0) = 1
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellState(AddItem(`Radio 2`),0) = 1"

	var_Items.AddItem("Radio 3")

172
Can I use your EBN files to change the visual appearance for checkbox cells

Dim oG2antt as P
Dim var_Column as local
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oG2antt.Template = "CheckImage(0) = 16777216" // oG2antt.CheckImage(0) = 16777216
oG2antt.Template = "CheckImage(1) = 33554432" // oG2antt.CheckImage(1) = 33554432
' oG2antt.Columns.Add("Check").Def(0) = .t.
var_Column = oG2antt.Columns.Add("Check")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Def(0) = True"

var_Items = oG2antt.Items
	var_Items.AddItem("Check 1")
	' var_Items.CellState(var_Items.AddItem("Check 2"),0) = 1
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellState(AddItem(`Check 2`),0) = 1"


171
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
Dim oG2antt as P
Dim var_Appearance as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.BeginUpdate()
var_Appearance = oG2antt.VisualAppearance
	var_Appearance.Add(1,"c:\exontrol\images\normal.ebn")
	var_Appearance.Add(2,"c:\exontrol\images\pushed.ebn")
	var_Appearance.Add(3,"c:\exontrol\images\hot.ebn")
oG2antt.Template = "Background(388) = 16777216" // oG2antt.Background(388) = 16777216
oG2antt.Template = "Background(389) = 33554432" // oG2antt.Background(389) = 33554432
oG2antt.Template = "Background(391) = 50331648" // oG2antt.Background(391) = 50331648
oG2antt.Template = "Background(260) = 16777216" // oG2antt.Background(260) = 16777216
oG2antt.Template = "Background(261) = 33554432" // oG2antt.Background(261) = 33554432
oG2antt.Template = "Background(263) = 50331648" // oG2antt.Background(263) = 50331648
oG2antt.ScrollBars = 3855 'exVScrollEmptySpace + exHScrollEmptySpace + exVScrollOnThumbRelease + exHScrollOnThumbRelease + exDisableBoth
oG2antt.ScrollBySingleLine = .t.
oG2antt.Columns.Add("Def")
var_Items = oG2antt.Items
	var_Items.AddItem(1)
	var_Items.AddItem(2)
	var_Items.AddItem(3)
oG2antt.EndUpdate()

170
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
Dim oG2antt as P
Dim var_Appearance as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.BeginUpdate()
var_Appearance = oG2antt.VisualAppearance
	var_Appearance.Add(1,"c:\exontrol\images\normal.ebn")
	var_Appearance.Add(2,"c:\exontrol\images\pushed.ebn")
	var_Appearance.Add(3,"c:\exontrol\images\hot.ebn")
oG2antt.Template = "Background(388) = 16777216" // oG2antt.Background(388) = 16777216
oG2antt.Template = "Background(389) = 33554432" // oG2antt.Background(389) = 33554432
oG2antt.Template = "Background(391) = 50331648" // oG2antt.Background(391) = 50331648
oG2antt.ScrollBars = 3855 'exVScrollEmptySpace + exHScrollEmptySpace + exVScrollOnThumbRelease + exHScrollOnThumbRelease + exDisableBoth
oG2antt.ScrollBySingleLine = .t.
oG2antt.Columns.Add("Def")
var_Items = oG2antt.Items
	var_Items.AddItem(1)
	var_Items.AddItem(2)
	var_Items.AddItem(3)
oG2antt.EndUpdate()

169
I've seen that you can change the visual appearance for the scroll bar. How can I do that

Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local
Dim var_Column4 as local
Dim var_Column5 as local
Dim var_Column6 as local
Dim var_Column7 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oG2antt.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
oG2antt.Template = "Background(324) = 16777216" // oG2antt.Background(324) = 16777216
oG2antt.Template = "Background(325) = 33554432" // oG2antt.Background(325) = 33554432
oG2antt.Template = "Background(327) = 50331648" // oG2antt.Background(327) = 50331648
oG2antt.Template = "Background(404) = 15790320" // oG2antt.Background(404) = 15790320
oG2antt.Template = "Background(276) = 15790320" // oG2antt.Background(276) = 15790320
oG2antt.Template = "Background(511) = 15790320" // oG2antt.Background(511) = 15790320
' oG2antt.Columns.Add("S").Width = 32
var_Column = oG2antt.Columns.Add("S")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 32"

' oG2antt.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oG2antt.Columns.Add("Level 1")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.LevelKey = 1"

' oG2antt.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oG2antt.Columns.Add("Level 2")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.LevelKey = 1"

' oG2antt.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oG2antt.Columns.Add("Level 3")
oG2antt.TemplateDef = "dim var_Column3"
oG2antt.TemplateDef = var_Column3
oG2antt.Template = "var_Column3.LevelKey = 1"

' oG2antt.Columns.Add("E1").Width = 32
var_Column4 = oG2antt.Columns.Add("E1")
oG2antt.TemplateDef = "dim var_Column4"
oG2antt.TemplateDef = var_Column4
oG2antt.Template = "var_Column4.Width = 32"

' oG2antt.Columns.Add("E2").Width = 32
var_Column5 = oG2antt.Columns.Add("E2")
oG2antt.TemplateDef = "dim var_Column5"
oG2antt.TemplateDef = var_Column5
oG2antt.Template = "var_Column5.Width = 32"

' oG2antt.Columns.Add("E3").Width = 32
var_Column6 = oG2antt.Columns.Add("E3")
oG2antt.TemplateDef = "dim var_Column6"
oG2antt.TemplateDef = var_Column6
oG2antt.Template = "var_Column6.Width = 32"

' oG2antt.Columns.Add("E4").Width = 32
var_Column7 = oG2antt.Columns.Add("E4")
oG2antt.TemplateDef = "dim var_Column7"
oG2antt.TemplateDef = var_Column7
oG2antt.Template = "var_Column7.Width = 32"

oG2antt.ColumnAutoResize = .f.
oG2antt.ScrollBars = 15

168
Is there any option to highligth the column from the cursor - point

Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local
Dim var_Column4 as local
Dim var_Column5 as local
Dim var_Column6 as local
Dim var_Column7 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.Template = "Background(32) = 16777216" // oG2antt.Background(32) = 16777216
' oG2antt.Columns.Add("S").Width = 32
var_Column = oG2antt.Columns.Add("S")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 32"

' oG2antt.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oG2antt.Columns.Add("Level 1")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.LevelKey = 1"

' oG2antt.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oG2antt.Columns.Add("Level 2")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.LevelKey = 1"

' oG2antt.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oG2antt.Columns.Add("Level 3")
oG2antt.TemplateDef = "dim var_Column3"
oG2antt.TemplateDef = var_Column3
oG2antt.Template = "var_Column3.LevelKey = 1"

' oG2antt.Columns.Add("E1").Width = 32
var_Column4 = oG2antt.Columns.Add("E1")
oG2antt.TemplateDef = "dim var_Column4"
oG2antt.TemplateDef = var_Column4
oG2antt.Template = "var_Column4.Width = 32"

' oG2antt.Columns.Add("E2").Width = 32
var_Column5 = oG2antt.Columns.Add("E2")
oG2antt.TemplateDef = "dim var_Column5"
oG2antt.TemplateDef = var_Column5
oG2antt.Template = "var_Column5.Width = 32"

' oG2antt.Columns.Add("E3").Width = 32
var_Column6 = oG2antt.Columns.Add("E3")
oG2antt.TemplateDef = "dim var_Column6"
oG2antt.TemplateDef = var_Column6
oG2antt.Template = "var_Column6.Width = 32"

' oG2antt.Columns.Add("E4").Width = 32
var_Column7 = oG2antt.Columns.Add("E4")
oG2antt.TemplateDef = "dim var_Column7"
oG2antt.TemplateDef = var_Column7
oG2antt.Template = "var_Column7.Width = 32"


167
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology

Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.Template = "Background(20) = 16777216" // oG2antt.Background(20) = 16777216
oG2antt.Template = "Background(21) = 1316095" // oG2antt.Background(21) = 1316095
' oG2antt.Columns.Add("Filter").DisplayFilterButton = .t.
var_Column = oG2antt.Columns.Add("Filter")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.DisplayFilterButton = True"


166
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN

Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oG2antt.Template = "Background(8) = 16777216" // oG2antt.Background(8) = 16777216
oG2antt.Template = "Background(9) = 16777216" // oG2antt.Background(9) = 16777216
oG2antt.Template = "Background(10) = 33554432" // oG2antt.Background(10) = 33554432
oG2antt.Template = "Background(11) = 16777216" // oG2antt.Background(11) = 16777216
oG2antt.Template = "Background(12) = 15132390" // oG2antt.Background(12) = 15132390
oG2antt.Template = "Background(13) = 15132390" // oG2antt.Background(13) = 15132390
oG2antt.Template = "Background(14) = 16777216" // oG2antt.Background(14) = 16777216
var_Column = oG2antt.Columns.Add("Date")
	var_Column.FilterType = 4
	var_Column.DisplayFilterButton = .t.
	var_Column.DisplayFilterDate = .t.

165
How do I change the visual aspect of the close button in the filter bar, using EBN

Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.Template = "Background(1) = 16777216" // oG2antt.Background(1) = 16777216
' oG2antt.Columns.Add("Filter").FilterType = 1
var_Column = oG2antt.Columns.Add("Filter")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.FilterType = 1"

oG2antt.ApplyFilter()

164
How do I change the visual aspect of buttons in the cell, using EBN

Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oG2antt.Template = "Background(2) = 16777216" // oG2antt.Background(2) = 16777216
oG2antt.Template = "Background(3) = 33554432" // oG2antt.Background(3) = 33554432
oG2antt.SelForeColor = 0
oG2antt.ShowFocusRect = .f.
' oG2antt.Columns.Add("Column 1").Def(2) = .t.
var_Column = oG2antt.Columns.Add("Column 1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Def(2) = True"

oG2antt.Items.AddItem("Button 1")
oG2antt.Items.AddItem("Button 2")
oG2antt.Columns.Add("Column 2")

163
How do I change the visual aspect of the drop down filter button, using EBN

Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.Template = "Background(0) = 16777216" // oG2antt.Background(0) = 16777216
' oG2antt.Columns.Add("Filter").DisplayFilterButton = .t.
var_Column = oG2antt.Columns.Add("Filter")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.DisplayFilterButton = True"


162
How do I enable resizing the columns at runtime
Dim oG2antt as P
Dim var_Items as P
Dim var_Items1 as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ColumnsAllowSizing = .t.
oG2antt.MarkSearchColumn = .f.
oG2antt.HeaderVisible = .f.
oG2antt.Columns.Add("Column 1")
oG2antt.Columns.Add("Column 2")
oG2antt.DrawGridLines = 2
var_Items = oG2antt.Items
	' var_Items.CellValue(var_Items.AddItem("Item 1"),1) = "Sub Item 1"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(AddItem(`Item 1`),1) = `Sub Item 1`"

var_Items1 = oG2antt.Items
	' var_Items1.CellValue(var_Items1.AddItem("Item 2"),1) = "Sub Item 2"
	oG2antt.TemplateDef = "dim var_Items1"
	oG2antt.TemplateDef = var_Items1
	oG2antt.Template = "var_Items1.CellValue(AddItem(`Item 2`),1) = `Sub Item 2`"


161
How can I select the second inner column when spliting the cells
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SelectColumnInner = 1
oG2antt.FullRowSelect = .f.
oG2antt.DrawGridLines = -1
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	' var_Items.CellValue(,var_Items.SplitCell(var_Items.AddItem("Split Cell 1.1"),0)) = "Split Cell 2.1"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(,SplitCell(AddItem(`Split Cell 1.1`),0)) = `Split Cell 2.1`"

	' var_Items.CellValue(,var_Items.SplitCell(var_Items.AddItem("Split Cell 1.2"),0)) = "Split Cell 2.2"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(,SplitCell(AddItem(`Split Cell 1.2`),0)) = `Split Cell 2.2`"

	' var_Items.SelectItem(var_Items.FirstVisibleItem) = .t.
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.SelectItem(FirstVisibleItem) = True"


160
How can I sort by multiple columns

Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SingleSort = .f.
' oG2antt.Columns.Add("C1").SortOrder = 1
var_Column = oG2antt.Columns.Add("C1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.SortOrder = 1"

' oG2antt.Columns.Add("C2").SortOrder = 2
var_Column1 = oG2antt.Columns.Add("C2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.SortOrder = 2"

' oG2antt.Columns.Add("C3").SortOrder = 1
var_Column2 = oG2antt.Columns.Add("C3")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.SortOrder = 1"


159
How can I add several columns to control's sort bar
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SortBarVisible = .t.
oG2antt.SortBarColumnWidth = 48
' oG2antt.Columns.Add("C1").SortOrder = 1
var_Column = oG2antt.Columns.Add("C1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.SortOrder = 1"

' oG2antt.Columns.Add("C2").SortOrder = 2
var_Column1 = oG2antt.Columns.Add("C2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.SortOrder = 2"


158
How can I change the width of the columns being displayed in the sort bar
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SortBarVisible = .t.
oG2antt.SortBarColumnWidth = 48
' oG2antt.Columns.Add("C1").SortOrder = 1
var_Column = oG2antt.Columns.Add("C1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.SortOrder = 1"

' oG2antt.Columns.Add("C2").SortOrder = 2
var_Column1 = oG2antt.Columns.Add("C2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.SortOrder = 2"


157
How can I change the height of the sort bar's
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SortBarVisible = .t.
oG2antt.SortBarHeight = 48

156
How can I change the sort bar's foreground color
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SortBarVisible = .t.
oG2antt.ForeColorSortBar = 255

155
How can I change the visual appearance of the control's sort bar, using EBN files

Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oG2antt.SortBarVisible = .t.
oG2antt.BackColorSortBar = 16777216
oG2antt.BackColorSortBarCaption = 33554432
oG2antt.Appearance = 0

154
How can I change the sort bar's background color
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SortBarVisible = .t.
oG2antt.BackColorSortBar = 255
oG2antt.BackColorSortBarCaption = 128

153
How can I change the default caption being displayed in the control's sort bar
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SortBarVisible = .t.
oG2antt.SortBarCaption = "new caption"

152
How can I show the locked / fixed items on the bottom side of the control
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ShowLockedItems = .t.
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	' var_Items.LockedItemCount(1) = 2
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.LockedItemCount(1) = 2"

	' var_Items.CellValue(var_Items.LockedItem(1,0),0) = "locked item 1"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(LockedItem(1,0),0) = `locked item 1`"

	' var_Items.CellValue(var_Items.LockedItem(1,1),0) = "locked item 2"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(LockedItem(1,1),0) = `locked item 2`"

	var_Items.AddItem("un-locked item")

151
How can I show the locked / fixed items
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ShowLockedItems = .t.
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	' var_Items.LockedItemCount(0) = 2
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.LockedItemCount(0) = 2"

	' var_Items.CellValue(var_Items.LockedItem(0,0),0) = "locked item 1"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(LockedItem(0,0),0) = `locked item 1`"

	' var_Items.CellValue(var_Items.LockedItem(0,1),0) = "locked item 2"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(LockedItem(0,1),0) = `locked item 2`"

	var_Items.AddItem("un-locked item")

150
How can I hide the locked / fixed items
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ShowLockedItems = .f.
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	' var_Items.LockedItemCount(0) = 1
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.LockedItemCount(0) = 1"

	' var_Items.CellValue(var_Items.LockedItem(0,0),0) = "locked item"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(LockedItem(0,0),0) = `locked item`"

	var_Items.AddItem("un-locked item")

149
How can I show the control's sort bar
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SortBarVisible = .t.

148
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local
Dim var_Column4 as local
Dim var_Column5 as local
Dim var_Column6 as local
Dim var_Column7 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.PictureLevelHeader = oG2antt.ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)")
oG2antt.PictureDisplayLevelHeader = 49
' oG2antt.Columns.Add("S").Width = 32
var_Column = oG2antt.Columns.Add("S")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 32"

' oG2antt.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oG2antt.Columns.Add("Level 1")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.LevelKey = 1"

' oG2antt.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oG2antt.Columns.Add("Level 2")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.LevelKey = 1"

' oG2antt.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oG2antt.Columns.Add("Level 3")
oG2antt.TemplateDef = "dim var_Column3"
oG2antt.TemplateDef = var_Column3
oG2antt.Template = "var_Column3.LevelKey = 1"

' oG2antt.Columns.Add("E1").Width = 32
var_Column4 = oG2antt.Columns.Add("E1")
oG2antt.TemplateDef = "dim var_Column4"
oG2antt.TemplateDef = var_Column4
oG2antt.Template = "var_Column4.Width = 32"

' oG2antt.Columns.Add("E2").Width = 32
var_Column5 = oG2antt.Columns.Add("E2")
oG2antt.TemplateDef = "dim var_Column5"
oG2antt.TemplateDef = var_Column5
oG2antt.Template = "var_Column5.Width = 32"

' oG2antt.Columns.Add("E3").Width = 32
var_Column6 = oG2antt.Columns.Add("E3")
oG2antt.TemplateDef = "dim var_Column6"
oG2antt.TemplateDef = var_Column6
oG2antt.Template = "var_Column6.Width = 32"

' oG2antt.Columns.Add("E4").Width = 32
var_Column7 = oG2antt.Columns.Add("E4")
oG2antt.TemplateDef = "dim var_Column7"
oG2antt.TemplateDef = var_Column7
oG2antt.Template = "var_Column7.Width = 32"


147
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local
Dim var_Column4 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.PictureLevelHeader = oG2antt.ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)")
oG2antt.PictureDisplayLevelHeader = 18
' oG2antt.Columns.Add("S").Width = 32
var_Column = oG2antt.Columns.Add("S")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 32"

' oG2antt.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oG2antt.Columns.Add("Level 1")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.LevelKey = 1"

' oG2antt.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oG2antt.Columns.Add("Level 2")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.LevelKey = 1"

' oG2antt.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oG2antt.Columns.Add("Level 3")
oG2antt.TemplateDef = "dim var_Column3"
oG2antt.TemplateDef = var_Column3
oG2antt.Template = "var_Column3.LevelKey = 1"

' oG2antt.Columns.Add("E").Width = 32
var_Column4 = oG2antt.Columns.Add("E")
oG2antt.TemplateDef = "dim var_Column4"
oG2antt.TemplateDef = var_Column4
oG2antt.Template = "var_Column4.Width = 32"


146
How can I display a picture on the control's header, when multiple levels are displayed

Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.PictureLevelHeader = oG2antt.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
' oG2antt.Columns.Add("S").Width = 32
var_Column = oG2antt.Columns.Add("S")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 32"

' oG2antt.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oG2antt.Columns.Add("Level 1")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.LevelKey = 1"

' oG2antt.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oG2antt.Columns.Add("Level 2")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.LevelKey = 1"

' oG2antt.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oG2antt.Columns.Add("Level 3")
oG2antt.TemplateDef = "dim var_Column3"
oG2antt.TemplateDef = var_Column3
oG2antt.Template = "var_Column3.LevelKey = 1"


145
How can I change the header's background color, when multiple levels are displayed
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.BackColorLevelHeader = 250
' oG2antt.Columns.Add("S").Width = 32
var_Column = oG2antt.Columns.Add("S")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 32"

' oG2antt.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oG2antt.Columns.Add("Level 1")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.LevelKey = 1"

' oG2antt.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oG2antt.Columns.Add("Level 2")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.LevelKey = 1"

' oG2antt.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oG2antt.Columns.Add("Level 3")
oG2antt.TemplateDef = "dim var_Column3"
oG2antt.TemplateDef = var_Column3
oG2antt.Template = "var_Column3.LevelKey = 1"


144
Can I programmatically scroll the control
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem(0)
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)
oG2antt.Items.AddItem(3)
oG2antt.PutItems(oG2antt.GetItems(0))
oG2antt.PutItems(oG2antt.GetItems(0))
oG2antt.Template = "ScrollPos(True) = 1" // oG2antt.ScrollPos(.t.) = 1

143
How do I disable expanding or collapsing an item when user presses the arrow keys
Dim h as N
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ExpandOnKeys = .f.
oG2antt.LinesAtRoot = -1
oG2antt.Columns.Add("Column 1")
var_Items = oG2antt.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	' var_Items.ExpandItem(h) = .t.
	oG2antt.TemplateDef = "dim var_Items,h"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = h
	oG2antt.Template = "var_Items.ExpandItem(h) = True"


142
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
Dim oG2antt as P
Dim var_Column as local
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ExpandOnSearch = .t.
oG2antt.LinesAtRoot = -1
oG2antt.AutoSearch = .t.
' oG2antt.Columns.Add("Column").AutoSearch = 1
var_Column = oG2antt.Columns.Add("Column")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.AutoSearch = 1"

var_Items = oG2antt.Items
	var_Items.InsertItem(var_Items.InsertItem(var_Items.AddItem("text"),,"some text"),,"another text")
	var_Items.InsertItem(var_Items.InsertItem(var_Items.AddItem("text"),,"some text"),,"another text")

141
Can I programmatically scroll the control
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem(0)
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)
oG2antt.Items.AddItem(3)
oG2antt.PutItems(oG2antt.GetItems(0))
oG2antt.PutItems(oG2antt.GetItems(0))
oG2antt.Scroll(1)

140
Do you have some function to load data from a safe array
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem(0)
oG2antt.PutItems(oG2antt.GetItems(0))

139
Do you have some function to retrieve all items to a safe array
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem(0)
oG2antt.PutItems(oG2antt.GetItems(0))
oG2antt.Items.AddItem(1)
oG2antt.PutItems(oG2antt.GetItems(0))
oG2antt.Items.AddItem(2)
oG2antt.PutItems(oG2antt.GetItems(0))
oG2antt.Items.AddItem(3)

138
How can still display the selected items when the control loses the focus
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.HideSelection = .f.
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	var_Items.AddItem("Item 3")
	var_Items.AddItem("Item 1")
	' var_Items.SelectItem(var_Items.AddItem("Item 2")) = .t.
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.SelectItem(AddItem(`Item 2`)) = True"


137
How can I hide a column
Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
' oG2antt.Columns.Add("Hidden").Visible = .f.
var_Column = oG2antt.Columns.Add("Hidden")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Visible = False"

oG2antt.Columns.Add("2")
oG2antt.Columns.Add("3")
oG2antt.Columns.Add("4")
oG2antt.Columns.Add("5")

136
How can I ensure that a column is visible and fits the control's client area
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local
Dim var_Column4 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ColumnAutoResize = .f.
' oG2antt.Columns.Add("1").Width = 128
var_Column = oG2antt.Columns.Add("1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 128"

' oG2antt.Columns.Add("2").Width = 128
var_Column1 = oG2antt.Columns.Add("2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.Width = 128"

' oG2antt.Columns.Add("3").Width = 128
var_Column2 = oG2antt.Columns.Add("3")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.Width = 128"

' oG2antt.Columns.Add("4").Width = 128
var_Column3 = oG2antt.Columns.Add("4")
oG2antt.TemplateDef = "dim var_Column3"
oG2antt.TemplateDef = var_Column3
oG2antt.Template = "var_Column3.Width = 128"

' oG2antt.Columns.Add("5").Width = 128
var_Column4 = oG2antt.Columns.Add("5")
oG2antt.TemplateDef = "dim var_Column4"
oG2antt.TemplateDef = var_Column4
oG2antt.Template = "var_Column4.Width = 128"

oG2antt.EnsureVisibleColumn("5")

135
I've seen that the width of the tooltip is variable. Can I make it larger
Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ToolTipWidth = 328
' oG2antt.Columns.Add("tootip").ToolTip = "this is a tooltip that should be very very very very very very very long"
var_Column = oG2antt.Columns.Add("tootip")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.ToolTip = `this is a tooltip that should be very very very very very very very long`"


134
How do I disable showing the tooltip for all control
Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ToolTipDelay = 0
' oG2antt.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
var_Column = oG2antt.Columns.Add("tootip")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.ToolTip = `this is a tooltip assigned to a column`"


133
How do I let the tooltip being displayed longer
Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ToolTipPopDelay = 10000
' oG2antt.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
var_Column = oG2antt.Columns.Add("tootip")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.ToolTip = `this is a tooltip assigned to a column`"


132
How do I show the tooltip quicker
Dim oG2antt as P
Dim var_Column as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ToolTipDelay = 1
' oG2antt.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
var_Column = oG2antt.Columns.Add("tootip")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.ToolTip = `this is a tooltip assigned to a column`"


131
How do I change the caption being displayed in the control's filter bar

Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.FilterBarCaption = "your filter caption"
var_Column = oG2antt.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oG2antt.ApplyFilter()

130
How do I disable expanding or collapsing an item when user double clicks it
Dim h as N
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ExpandOnDblClick = .f.
oG2antt.LinesAtRoot = -1
oG2antt.Indent = 13
oG2antt.Columns.Add("Column 1")
var_Items = oG2antt.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	' var_Items.ExpandItem(h) = .t.
	oG2antt.TemplateDef = "dim var_Items,h"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = h
	oG2antt.Template = "var_Items.ExpandItem(h) = True"


129
How do I search case sensitive, using your incremental search feature
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Columns as P
Dim var_Items as P
Dim var_Items1 as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.AutoSearch = .t.
oG2antt.ASCIILower = ""
var_Columns = oG2antt.Columns
	' var_Columns.Add("exStartWith").AutoSearch = 0
	var_Column = var_Columns.Add("exStartWith")
	oG2antt.TemplateDef = "dim var_Column"
	oG2antt.TemplateDef = var_Column
	oG2antt.Template = "var_Column.AutoSearch = 0"

	' var_Columns.Add("exContains").AutoSearch = 1
	var_Column1 = var_Columns.Add("exContains")
	oG2antt.TemplateDef = "dim var_Column1"
	oG2antt.TemplateDef = var_Column1
	oG2antt.Template = "var_Column1.AutoSearch = 1"

var_Items = oG2antt.Items
	' var_Items.CellValue(var_Items.AddItem("text"),1) = "another text"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(AddItem(`text`),1) = `another text`"

var_Items1 = oG2antt.Items
	' var_Items1.CellValue(var_Items1.AddItem("text"),1) = "another text"
	oG2antt.TemplateDef = "dim var_Items1"
	oG2antt.TemplateDef = var_Items1
	oG2antt.Template = "var_Items1.CellValue(AddItem(`text`),1) = `another text`"


128
How do I disable the control
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Enabled = .f.

127
How do I enable the incremental search feature within a column
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Columns as P
Dim var_Items as P
Dim var_Items1 as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.AutoSearch = .t.
var_Columns = oG2antt.Columns
	' var_Columns.Add("exStartWith").AutoSearch = 0
	var_Column = var_Columns.Add("exStartWith")
	oG2antt.TemplateDef = "dim var_Column"
	oG2antt.TemplateDef = var_Column
	oG2antt.Template = "var_Column.AutoSearch = 0"

	' var_Columns.Add("exContains").AutoSearch = 1
	var_Column1 = var_Columns.Add("exContains")
	oG2antt.TemplateDef = "dim var_Column1"
	oG2antt.TemplateDef = var_Column1
	oG2antt.Template = "var_Column1.AutoSearch = 1"

var_Items = oG2antt.Items
	' var_Items.CellValue(var_Items.AddItem("text"),1) = "another text"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(AddItem(`text`),1) = `another text`"

var_Items1 = oG2antt.Items
	' var_Items1.CellValue(var_Items1.AddItem("text"),1) = "another text"
	oG2antt.TemplateDef = "dim var_Items1"
	oG2antt.TemplateDef = var_Items1
	oG2antt.Template = "var_Items1.CellValue(AddItem(`text`),1) = `another text`"


126
How do I call your x-script language
Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
var_Column = oG2antt.ExecuteTemplate("Columns.Add(`Column`)")
	var_Column.HeaderStrikeOut = .t.
	var_Column.HeaderBold = .t.

125
How do I call your x-script language
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Template = "Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`"

124
How do I show alternate rows in different background color

Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.BackColorAlternate = 15790320
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	var_Items.AddItem("Item 1")
	var_Items.AddItem("Item 2")
	var_Items.AddItem("Item 3")
	var_Items.AddItem("Item 4")
	var_Items.AddItem("Item 5")

123
How do I enlarge the drop down filter window
Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.FilterBarDropDownHeight = -320
var_Column = oG2antt.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterBarDropDownWidth = -320
oG2antt.Items.AddItem("Item 1")
oG2antt.Items.AddItem("Item 2")

122
How do I filter programmatically the control
Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
var_Column = oG2antt.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 3
	var_Column.Filter = "Item*"
oG2antt.Items.AddItem("Item 1")
oG2antt.Items.AddItem("")
oG2antt.Items.AddItem("Item 2")
oG2antt.ApplyFilter()

121
How do I change the font of the control's filterbar
Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.FilterBarFont.Size = 20
var_Column = oG2antt.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oG2antt.ApplyFilter()

120
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance

Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.FilterBarBackColor = 16777216
var_Column = oG2antt.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oG2antt.ApplyFilter()

119
How do I change the background color of the control's filterbar
Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.FilterBarBackColor = 15790320
var_Column = oG2antt.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oG2antt.ApplyFilter()

118
How do I change the foreground color of the control's filterbar

Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.FilterBarForeColor = 255
var_Column = oG2antt.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oG2antt.ApplyFilter()

117
How do I change the height of the control's filterbar
Dim oG2antt as P
Dim var_Column as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.FilterBarHeight = 32
var_Column = oG2antt.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oG2antt.ApplyFilter()

116
How do I change the header's foreground color
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ForeColorHeader = 255
oG2antt.Columns.Add("Column 1")
oG2antt.Columns.Add("Column 2")
oG2antt.Items.AddItem("Item 1")

115
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Picture = oG2antt.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oG2antt.SelBackMode = 1
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem("Item 1")
oG2antt.Items.AddItem("Item 2")

114
It seems that the control uses the TAB key, is there any way to avoid that
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.UseTabKey = .f.

113
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SelectColumnIndex = 1
oG2antt.FullRowSelect = .f.
oG2antt.SelectColumn = .t.
oG2antt.Columns.Add("Column 1")
oG2antt.Columns.Add("Column 2")
var_Items = oG2antt.Items
	' var_Items.CellValue(var_Items.AddItem("Item 1"),1) = "SubItem 1"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(AddItem(`Item 1`),1) = `SubItem 1`"


112
How do I assign a database to your control, using ADO, ADOR or ADODB objects
Dim oG2antt as P
Dim rs as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ColumnAutoResize = .f.
oG2antt.ContinueColumnScroll = .f.
rs = OLE.Create("ADOR.Recordset")
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExG2antt\Sample\Access\misc.accdb",3,3)
oG2antt.DataSource = rs

111
How do I change the visual appearance effect for the selected item, using EBN
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oG2antt.SelBackColor = 16777216
oG2antt.SelForeColor = 0
oG2antt.ShowFocusRect = .f.
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem(0)
oG2antt.Items.AddItem(1)

110
How do I change the colors for the selected item
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SelBackColor = 0
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem(0)
oG2antt.Items.AddItem(1)

109
How can I hide the frame/rectangle arround the focused item
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.BeginUpdate()
oG2antt.SelBackColor = oG2antt.BackColor
oG2antt.SelForeColor = oG2antt.ForeColor
oG2antt.ShowFocusRect = .f.
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem(0)
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem("")
oG2antt.EndUpdate()

108
How can I change the control's font
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.Font.Name = "Tahoma"
oG2antt.Columns.Add("Column")

107
I can't scroll to the end of the data. What can I do
Dim oG2antt as P
Dim var_Items as P
Dim var_Items1 as P
Dim var_Items2 as P
Dim var_Items3 as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ScrollBySingleLine = .t.
oG2antt.DrawGridLines = -2
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	' var_Items.ItemHeight(var_Items.AddItem(0)) = 13
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.ItemHeight(AddItem(0)) = 13"

oG2antt.PutItems(oG2antt.GetItems(0))
var_Items1 = oG2antt.Items
	' var_Items1.ItemHeight(var_Items1.AddItem(1)) = 26
	oG2antt.TemplateDef = "dim var_Items1"
	oG2antt.TemplateDef = var_Items1
	oG2antt.Template = "var_Items1.ItemHeight(AddItem(1)) = 26"

oG2antt.PutItems(oG2antt.GetItems(0))
var_Items2 = oG2antt.Items
	' var_Items2.ItemHeight(var_Items2.AddItem(2)) = 36
	oG2antt.TemplateDef = "dim var_Items2"
	oG2antt.TemplateDef = var_Items2
	oG2antt.Template = "var_Items2.ItemHeight(AddItem(2)) = 36"

oG2antt.PutItems(oG2antt.GetItems(0))
var_Items3 = oG2antt.Items
	' var_Items3.ItemHeight(var_Items3.AddItem(3)) = 48
	oG2antt.TemplateDef = "dim var_Items3"
	oG2antt.TemplateDef = var_Items3
	oG2antt.Template = "var_Items3.ItemHeight(AddItem(3)) = 48"

oG2antt.PutItems(oG2antt.GetItems(0))

106
How do I specify the column where the tree lines / hierarchy are shown

Dim h as N
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.LinesAtRoot = 1
oG2antt.TreeColumnIndex = 1
oG2antt.Columns.Add("Column 1")
oG2antt.Columns.Add("Column 2")
var_Items = oG2antt.Items
	h = var_Items.AddItem("Root 1.1")
	' var_Items.CellValue(h,1) = "Root 1.2"
	oG2antt.TemplateDef = "dim var_Items,h"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = h
	oG2antt.Template = "var_Items.CellValue(h,1) = `Root 1.2`"

	' var_Items.CellValue(var_Items.InsertItem(h,,"Child 1.1"),1) = "Child 1.2"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(InsertItem(h,,`Child 1.1`),1) = `Child 1.2`"

	' var_Items.CellValue(var_Items.InsertItem(h,,"Child 2.1"),1) = "Child 2.2"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(InsertItem(h,,`Child 2.1`),1) = `Child 2.2`"

	' var_Items.ExpandItem(h) = .t.
	oG2antt.TemplateDef = "dim var_Items,h"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = h
	oG2antt.Template = "var_Items.ExpandItem(h) = True"

	h = var_Items.AddItem("Root 2.1")
	' var_Items.CellValue(h,1) = "Root 2.2"
	oG2antt.TemplateDef = "dim var_Items,h"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = h
	oG2antt.Template = "var_Items.CellValue(h,1) = `Root 2.2`"

	' var_Items.CellValue(var_Items.InsertItem(h,,"Child 1.1"),1) = "Child 1.2"
	oG2antt.TemplateDef = "dim var_Items"
	oG2antt.TemplateDef = var_Items
	oG2antt.Template = "var_Items.CellValue(InsertItem(h,,`Child 1.1`),1) = `Child 1.2`"


105
How do I specify the indentation of the child items relative to their parents

Dim h as N
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.LinesAtRoot = 1
oG2antt.Indent = 11
oG2antt.Columns.Add("Column")
var_Items = oG2antt.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	' var_Items.ExpandItem(h) = .t.
	oG2antt.TemplateDef = "dim var_Items,h"
	oG2antt.TemplateDef = var_Items
	oG2antt.TemplateDef = h
	oG2antt.Template = "var_Items.ExpandItem(h) = True"

	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child")

104
Is there any option to select an item using the right button of the mouse (rclick)
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.RClickSelect = .t.
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem("Item 1")
oG2antt.Items.AddItem("Item 2")

103
I have FullRowSelect property on False, how do I select a column
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SelectColumnIndex = 1
oG2antt.FullRowSelect = .f.

102
How can I scroll columns one by one, not pixel by pixel
Dim oG2antt as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local
Dim var_Column4 as local

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.ContinueColumnScroll = .f.
oG2antt.ColumnAutoResize = .f.
' oG2antt.Columns.Add("1").Width = 128
var_Column = oG2antt.Columns.Add("1")
oG2antt.TemplateDef = "dim var_Column"
oG2antt.TemplateDef = var_Column
oG2antt.Template = "var_Column.Width = 128"

' oG2antt.Columns.Add("2").Width = 128
var_Column1 = oG2antt.Columns.Add("2")
oG2antt.TemplateDef = "dim var_Column1"
oG2antt.TemplateDef = var_Column1
oG2antt.Template = "var_Column1.Width = 128"

' oG2antt.Columns.Add("3").Width = 128
var_Column2 = oG2antt.Columns.Add("3")
oG2antt.TemplateDef = "dim var_Column2"
oG2antt.TemplateDef = var_Column2
oG2antt.Template = "var_Column2.Width = 128"

' oG2antt.Columns.Add("4").Width = 128
var_Column3 = oG2antt.Columns.Add("4")
oG2antt.TemplateDef = "dim var_Column3"
oG2antt.TemplateDef = var_Column3
oG2antt.Template = "var_Column3.Width = 128"

' oG2antt.Columns.Add("5").Width = 128
var_Column4 = oG2antt.Columns.Add("5")
oG2antt.TemplateDef = "dim var_Column4"
oG2antt.TemplateDef = var_Column4
oG2antt.Template = "var_Column4.Width = 128"


101
How can I enable multiple items selection
Dim oG2antt as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.SingleSel = .f.
oG2antt.Columns.Add("Column")
oG2antt.Items.AddItem(0)
oG2antt.Items.AddItem(1)
oG2antt.Items.AddItem(2)